<?php if (hasPermission("namespaces.object.create.redirect")): ?>
	<form action="<?php echo Gene::makeLink($object) ?>/new/redirect" method="post">
	
	<fieldset>
	<legend>Create Redirection</legend>
	
	<?php if ($draft): ?>
		<input type="hidden" name="draftid" value="<?php echo $draft['draft_id'] ?>" />
	<?php endif; ?>
	
	<p class="fieldlabel"><label for="pagetitle">Redirect Title:</label></p>
	<p class="field"><input type="text" id="pagetitle" name="objtitle" size="32" class="required" value="<?php _e($title) ?>" /></p>
	
	<p class="fieldlabel"><label for="pagedesc">Redirect Description: <em>(Optional)</em></label></p>
	<p class="field"><input type="text" id="pagedesc" name="objdesc" size="64" value="<?php _e($description) ?>" /></p>
	
	<p class="fieldlabel"><label for="target">Target:</label></p>
	<p class="field"><input type="text" id="target" name="objcontent" size="64" class="required" /><br />
	<label><input type="radio" name="rtype" value="internal" />This is an internal page ID.</label><br />
	<label><input type="radio" name="rtype" value="external" checked="checked" />This is the URL to an external page.</label></p>
	
	<p class="formcontrols"><input type="submit" value="Create Redirect" class="btn_focus" /></p>
	
	</fieldset>
	
	</form>
<?php endif; ?>